<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>图书管理</title>
</head>

<body>
--------图书管理----------- </br>
<form method='post' action="__URL__/bookadd">
图书名称： <input name="Book_Name" type="text" /> </br>
ISBN: <input name="Book_Isbn" type="text" /> </br>
数量: <input name="Book_Number" type="text" value="1" /></br>
<input name="add" type="submit" value="添加" /> <input name="cancel" type="reset" value="取消" />
</form>



<!--图书列表-->
<table width="80%" border="1">
  <tr>
    <td>书名</td>
    <td>ISBN</td>
    <td>库存数量</td>
    <td>操作</td>
  </tr>
  <?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
    <td><?php echo ($vo["Book_Name"]); ?></td>
    <td><?php echo ($vo["Book_Isbn"]); ?></td>
    <td><?php echo ($vo["Book_Number"]); ?></td>
    <td>编辑 /   删除</td>
  </tr><?php endforeach; endif; else: echo "" ;endif; ?>
</table>
</body>
</html>